package com.sankuai.meituan.util;

import org.springframework.beans.factory.FactoryBean;

/**
 * @author : fengleifeng
 * @Package com.sankuai.meituan.util
 * @Description:
 * @date Date : 2021年04月30日 10:35 下午
 */
public class UserFactoryBean implements FactoryBean<AddressData> {
    Integer count = 0;
    @Override
    public AddressData getObject() throws Exception {
        return new AddressData(count++);
    }

    @Override
    public Class<?> getObjectType() {
        return AddressData.class;
    }

    @Override
    public boolean isSingleton() {
        return false;
    }
}
